$("#getArchiving").change(function () {
    var roleId=$("#getArchiving").val();
    $("#checkboxBox").html("");
    getArchiving(roleId);
});
var roleId=$("#getArchiving").val();
getArchiving(roleId);
function getArchiving(roleId) {
    $.ajax({
        url: Feng.ctxPath + "/reservations/getArchiving",
        type: "get",
        data:{
            "roleId":roleId
        } ,
        success: function (data) {
            for (var i = 0; i < data.length; i++) {
                var checkbox = '<div style="width: 20%"><span class="checkboxStyle"><input class="checkboxClass" type="radio" value="' + data[i].account + '" name="about" id="click_' + data[i].account + '"></span><label for="click_' + data[i].account + '" class="labelStyle">' + data[i].account + '</label></div>';
                $("#checkboxBox").append(checkbox);
            }
        },
        error: function (data) {
            alert('没有权限，请联系管理员!');
        }
    });
    $("#checkboxBox").on('click', '.checkboxStyle', function () {
        $(this).children().attr('checked','true');
        $(this).addClass('selection').parent().siblings().children('.checkboxStyle').removeClass('selection');
    });
}
$("#submission").click(function () {
    $('#belonger', parent.document).val($('input:radio:checked').val());
    $('#cancels').click();
});